import request from '@/utils/request'

// 获取菜单路由
export function generateRoute() {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/login/menu`,
    method: 'get'
  })
}

// 获取copyright
export function copyright() {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/public/copyright`,
    method: 'get'
  })
}

// 获取配置项
export function getConfig(key) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/public/options?key=${key}`,
    method: 'get'
  })
}

// 获取字典选项
export function getDictGroup(group) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/public/dict/group?group=${group}`,
    method: 'get'
  })
}
